<template>
  <div class="header">
    <el-card shadow="hover">
      <el-row>
        <el-col :span="8">
          <div class="logo-box">
            <img src="@/assets/logo.png" alt="logo" class="logo">
          </div>
        </el-col>
        <el-col :span="8">
          <div class="search-box">
            <el-input class="search" v-model="input" placeholder="请输入搜索内容"></el-input>
          <el-button type="primary" icon="el-icon-search">搜索</el-button>
          </div>
          
        </el-col>
        <el-col :span="8">
          <div class="info-box">
                      <div class="icon-box">
            <el-button type="warning" icon="el-icon-refresh-right" circle @click="refresh"></el-button>
          <el-button type="success" icon="el-icon-chat-line-round" circle></el-button>
          <el-button type="primary" icon="el-icon-full-screen" circle @click="fullscreen"></el-button>
          </div>
          
          <el-avatar icon="el-icon-user-solid"></el-avatar>
          <el-dropdown>
            <span class="el-dropdown-link">
              admin
              <i class="el-icon-arrow-down el-icon--right"></i>
            </span>
            <el-dropdown-menu slot="dropdown">
              <el-dropdown-item>黄金糕</el-dropdown-item>
              <el-dropdown-item>狮子头</el-dropdown-item>
              <el-dropdown-item>螺蛳粉</el-dropdown-item>
              <el-dropdown-item disabled>双皮奶</el-dropdown-item>
              <el-dropdown-item divided>蚵仔煎</el-dropdown-item>
            </el-dropdown-menu>
          </el-dropdown>
          </div>

        </el-col>
      </el-row>
    </el-card>
  </div>
</template>

<script>
//从工具函数中导入全屏函数
import {fullscreen} from '@/utils/util.js';
export default {
  methods: {
    fullscreen,
    refresh(){
      location.reload();
    }
  },
};
</script>

<style scoped>
.header{
  height: 10vh;
  overflow: hidden;
}
/* .header .logo-box{
  
} */
.header .search-box{
  text-align: right;
}
.header .info-box{
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.logo{
  width:10vw;
  height: 10vh;
  margin-top: -20px;
}
.search{
  width: 15vw;
}

</style>